//
//  AppDelegate.swift
//  SwiftDemo1
//
//  Created by wzp on 2025/5/27.
//

import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        self.window = UIWindow(frame: UIScreen.main.bounds)
        let mainVc = ZYMainTabBarVc()
        self.window?.rootViewController = mainVc
        self.window?.makeKeyAndVisible()
        
        if #available(iOS 13.0, *) {
            let appearance = UINavigationBarAppearance()
            appearance.configureWithOpaqueBackground()
            appearance.backgroundColor = .white
            appearance.titleTextAttributes = [.foregroundColor : UIColor.black]
            appearance.largeTitleTextAttributes = [.foregroundColor : UIColor.orange]
            UINavigationBar.appearance().standardAppearance = appearance
            UINavigationBar.appearance().scrollEdgeAppearance = appearance
            UINavigationBar.appearance().compactAppearance = appearance
            UINavigationBar.appearance().tintColor = .orange
            UINavigationBar.appearance().titleTextAttributes = [.foregroundColor : UIColor.black]
        }
        
        // Override point for customization after application launch.
        return true
    }

}

